<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改员工</title>
</head>
<body>
<h3>修改员工</h3>
	<form action="${pageContext.request.contextPath}/updateEmployee"
		method="post">
		<input type="text" name="id" value="${employee.id}" hidden="true">
		<table width="70%" >
			<tr>
				<td >姓名：
				<input type="text" name="name" value="${employee.name}"/></td>
				
			</tr>
			<tr>
				<td >手机号：
				<input type="text" name="phone" value="${employee.phone}"/></td>
				
			</tr>
			
			<tr>
				<td >所属部门：
				  <c:forEach items="${allDepartments}" var="department">
	
			        <input type="radio" name="departmentId" value="${department.id}" 
			        ${employee.departmentId == department.id ? 'checked' : ''} >${department.name}
		          </c:forEach>
				</td>
				
			</tr>
			
			<tr>
				<td ><input type="submit" value="保存"/></td>
			</tr>
		</table>
	</form>
</body>
</html>